﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Asset/EassetMaster.master" AutoEventWireup="true"
    CodeBehind="AssetsTransferOutForm.aspx.cs" Inherits="Eassets.UI.Asset.AssetsTransferOutForm" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Src="~/Components/FlashMessage.ascx" TagName="FlashMessage" TagPrefix="osm" %>
<asp:Content ID="Content3" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="formtitle">
        <asp:Label ID="labelFormTitle" runat="server" Text="Fixed Asset Transfer Out"></asp:Label>
    </div>
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td colspan="2" align="right">
                                <osm:FlashMessage ID="FlashMessage1" runat="server" />
                                &nbsp;&nbsp;&nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Label ID="labelIssuingOrganizationLevel" runat="server" Text="Organization Level"
                                    CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListIssuingOrganizationLevel" runat="server" CssClass="select"
                                    AutoPostBack="true" OnSelectedIndexChanged="dropDownListIssuingOrganizationLevel_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                            <td align="right" width="">
                                <asp:Label ID="labelTransferOutNo" runat="server" Text="Transfer Out No" CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListTransferOutNo" runat="server" CssClass="select"
                                    AutoPostBack="true">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table>
                        <tr>
                            <td>
                                <asp:Label ID="labelRequestingOrganizationLevel" runat="server" Text="Requesting Organization Level"
                                    CssClass="legendlabel_size1"></asp:Label>
                                <asp:DropDownList ID="dropDownListRequestingOrganizationLevel" runat="server" CssClass="select"
                                    AutoPostBack="true" OnSelectedIndexChanged="dropDownListRequestingOrganizationLevel_SelectedIndexChanged">
                                    <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td>
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
            <ul class="form">
                <li>
                    <div class="formfield">
                        <asp:Label ID="labelRelatedDocuments" runat="server" Text="Related Documents" CssClass="legendlabel_size1"></asp:Label>
                        <asp:DropDownList ID="dropDownListRelatedDocuments" runat="server" CssClass="select"
                            AutoPostBack="true" OnSelectedIndexChanged="dropDownListRelatedDocuments_SelectedIndexChanged">
                            <asp:ListItem Value="1" Text="ARN"></asp:ListItem>
                            <asp:ListItem Value="2" Text="No Related Documents"></asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </li>
            </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div>
                    <asp:TabContainer ID="TabContainer2" runat="server" ActiveTabIndex="0">
                        <asp:TabPanel ID="TabPanel1" HeaderText="Linked ARN" TabIndex="0" runat="server">
                            <ContentTemplate>
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <table width="100%">
                                                <tr>
                                                    <td align="center" valign="top">
                                                        <asp:GridView ID="gridViewTransactionDetails" runat="server" Caption="Transaction Details"
                                                            CssClass="ColStyle" EmptyDataText="No data to display" AllowPaging="True" AutoGenerateColumns="False"
                                                            Width="100%" OnSelectedIndexChanged="gridViewTransactionDetails_SelectedIndexChanged"
                                                            OnPageIndexChanging="gridViewTransactionDetails_OnPageIndexChanging">
                                                            <AlternatingRowStyle CssClass="AltRowStyle" />
                                                            <Columns>
                                                                <asp:CommandField ShowSelectButton="True" ButtonType="Image" SelectImageUrl="~/styles/images/Select_icon_button.gif">
                                                                    <ItemStyle Width="20px" />
                                                                </asp:CommandField>
                                                                <asp:BoundField HeaderText="Transaction No" DataField="TransactionNo">
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                                <asp:BoundField HeaderText="Transaction Date" DataField="TransactionDate">
                                                                    <ItemStyle HorizontalAlign="Left" />
                                                                </asp:BoundField>
                                                            </Columns>
                                                            <HeaderStyle CssClass="GridHeader" />
                                                            <RowStyle CssClass="RowStyle" />
                                                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="formfield">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <asp:GridView ID="gridViewAssetDetails" runat="server" Caption="Asset Details" CssClass="ColStyle"
                                                            EmptyDataText="No data to display" AllowPaging="True" AutoGenerateColumns="False">
                                                            <AlternatingRowStyle CssClass="AltRowStyle" />
                                                            <Columns>
                                                                <asp:TemplateField>
                                                                    <HeaderTemplate>
                                                                        <asp:CheckBox runat="server" ID="checkBoxAllAssets" AutoPostBack="True" OnCheckedChanged="checkBoxHeaderAssetAll_CheckedChanged" /></HeaderTemplate>
                                                                    <ItemTemplate>
                                                                        <asp:CheckBox runat="server" ID="checkBoxAssets" AutoPostBack="True" /></ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField HeaderText="Asset Id" DataField="AssetId">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Asset Code">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="labelAssetCode" runat="server" Text='<%# Eval("Assets.Code")%>'></asp:Label></ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Description">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="labelDescription" runat="server" Text='<%# Eval("Assets.Description")%>'></asp:Label></ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:BoundField HeaderText="Requested Qty" DataField="Quantity">
                                                                    <ItemStyle HorizontalAlign="Center" />
                                                                </asp:BoundField>
                                                                <asp:TemplateField HeaderText="Issuing Qty">
                                                                    <ItemTemplate>
                                                                        <asp:TextBox ID="textBoxIssuingQty" runat="server" Text='' Width="50px" OnTextChanged="textBoxQuantity_TextChanged"></asp:TextBox></ItemTemplate>
                                                                </asp:TemplateField>
                                                                <asp:TemplateField HeaderText="Available Qty">
                                                                    <ItemTemplate>
                                                                        <asp:Label ID="labelAvailableQty" runat="server" Text='<%# Eval("OrganizationLevelListAsset.NoOfAssets")%>'></asp:Label></ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                            <HeaderStyle CssClass="GridHeader" />
                                                            <RowStyle CssClass="RowStyle" />
                                                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td>
                                                        <asp:Button ID="buttonApply" runat="server" Text="Apply" CssClass="button_normal"
                                                            OnClick="buttonApply_Click" />
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                        <div class="formfield">
                                            <table width="100%">
                                                <tr>
                                                    <td>
                                                        <asp:GridView ID="gridViewTransferringAssetDetails" runat="server" Caption="Transferring Asset Details"
                                                            CssClass="ColStyle" EmptyDataText="No data to display" AllowPaging="True">
                                                            <AlternatingRowStyle CssClass="AltRowStyle" />
                                                            <HeaderStyle CssClass="GridHeader" />
                                                            <RowStyle CssClass="RowStyle" />
                                                            <SelectedRowStyle CssClass="SelectedRowStyle" />
                                                        </asp:GridView>
                                                    </td>
                                                </tr>
                                            </table>
                                        </div>
                                    </li>
                                </ul>
                            </ContentTemplate>
                        </asp:TabPanel>
                        <asp:TabPanel ID="TabPanel2" HeaderText="No Related Documents" TabIndex="1" runat="server">
                            <ContentTemplate>
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <asp:Label ID="labelMainCategory" runat="server" Text="Main Category" CssClass="legendlabel_size1"></asp:Label><asp:DropDownList
                                                ID="dropDownListMainCategory" runat="server" CssClass="select" AutoPostBack="True"
                                                AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListMainCategory_SelectedIndexChanged">
                                                <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="hiddenFieldMainCategory" runat="server" />
                                        </div>
                                    </li>
                                </ul>
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <asp:Label ID="labelSubCategory" runat="server" Text="Sub Category" CssClass="legendlabel_size1"></asp:Label><asp:DropDownList
                                                ID="dropDownListSubCategory" runat="server" CssClass="select" AutoPostBack="True"
                                                AppendDataBoundItems="True" OnSelectedIndexChanged="dropDownListSubCategory_SelectedIndexChanged">
                                                <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="hiddenFieldSubCategory" runat="server" />
                                        </div>
                                    </li>
                                </ul>
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <asp:Label ID="labelAsset" runat="server" Text="Asset" CssClass="legendlabel_size1"></asp:Label><asp:DropDownList
                                                ID="dropDownListAsset" runat="server" CssClass="select" AutoPostBack="True" AppendDataBoundItems="True"
                                                OnSelectedIndexChanged="dropDownListAsset_SelectedIndexChanged">
                                                <asp:ListItem Value="0" Text="-Select-" Selected="True"></asp:ListItem>
                                            </asp:DropDownList>
                                            <asp:HiddenField ID="hiddenFieldAsset" runat="server" />
                                        </div>
                                    </li>
                                </ul>
                                <ul class="form">
                                    <li>
                                        <div class="formfield">
                                            <asp:Label ID="labelIssuingQuantity" runat="server" Text="Issuing Quantity" CssClass="legendlabel_size1"></asp:Label><asp:TextBox
                                                ID="textBoxIssuingQuantity" runat="server" CssClass="textbox_customsize" Width="100px"
                                                MaxLength="8"></asp:TextBox></div>
                                    </li>
                                </ul>
                            </ContentTemplate>
                        </asp:TabPanel>
                    </asp:TabContainer>
                </div>
            </li>
        </ul>
    </fieldset>
    <br />
    <fieldset>
        <ul class="form">
            <li>
                <div class="formfield">
                    <table align="right">
                        <tr>
                            <td>
                            </td>
                            <td style="width: 60%">
                            </td>
                            <td align="right">
                                <asp:Button ID="buttonSave" runat="server" Text="Save" CssClass="button_normal" OnClick="buttonSave_Click" />
                            </td>
                            <td>
                            </td>
                            <td align="right">
                                <asp:Button ID="buttonPrint" runat="server" Text="Print" CssClass="button_normal" />
                            </td>
                        </tr>
                    </table>
                </div>
            </li>
        </ul>
    </fieldset>
    </ul>
    <br />
</asp:Content>
